package org.oschina;

import org.oschina.bean.Result;

public class ResultUtil {

	public static Result getResult(boolean success,Object message)
	{
		Result result=new Result();
		result.setSuccess(success);
		result.setMessage(message);
		return result;
	}
	
	public static Result getSuccess(Object message)
	{
		return getResult(true,message);
	}
	
	public static Result getFailure(Object message)
	{
		return getResult(false,message);
	}
}